/**
 *  ||==\\ ==|| \\===
 *  ||  || ==||  \==/
 *  ||==// ==|| ===// (www.d3s.net)
 * 
 * Frame is a part of the D3S Papervision3D Importer Library
 * Please feel free to use, modify, and distribute as long as 
 * as credit is given to the original creator me, Philippe Ajoux.
 * If you have any comments, suggests, requests, or found a bug
 * please send me an e-mail and let me know. You will help everyone.
 * 
 * -----[1] 01.09.07 --------------
 * Original release that worked with original [Revision ?] of Papervision3D
 * (Revision # unknown, but it was first "closed" beta release)
 * 
 * @version 01.09.07
 * @author Philippe Ajoux (philippe.ajoux@gmail.com)
 */
package d3s.net.papervision3d.animation
{
	/**
	 * Used in combination with KeyframeMesh DisplayObject3D and all sub-classes
	 * to provided keyframe-based animation to objects.
	 * <p>
	 * A Frame object has a list of vertices and a name which define the animation.
	 */
	public class Frame
	{
		public var name:String;
		public var vertices:Array;
		
		/**
		 * Create a new Frame with a name and a set of vertices
		 * 
		 * @param name	The name of the frame
		 * @param vertices	An array of Vertex3D objects
		 */
		public function Frame(name:String, vertices:Array)
		{
			this.name = name;
			this.vertices = vertices;
		}
		
		public function toString():String
		{
			return "[Frame][name:" + name + "][vertices:" + vertices.length + "]";
		}	
	}
}